package com.thomasmoerman.dci3.pbc

import com.thomasmoerman.dci3.domain._
import com.thomasmoerman.dci3.frw._

abstract class PayBillsContext(var person: Option[Person] = None) extends Context

trait PayBillsContextFactory {
  this: DebtorProvider =>
  
  def newPayBillsContext: PayBillsContext = new PayBillsContext {
	
	lazy val debtor = person getOrElse initError("No person specified")	
	
	def execute = debtor.payBills
	
  }
  
}